.class public Limoblife/yogamoment/lite/SetActivity;
.super Landroid/preference/PreferenceActivity;
.source "SetActivity.java"


# static fields
.field public static animationModeIndex:I

.field public static isAnimationPlay:Z

.field public static timeIndex:I


# instance fields
.field times:[I


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 14
    invoke-direct {p0}, Landroid/preference/PreferenceActivity;-><init>()V

    .line 22
    const/16 v0, 0xa

    new-array v0, v0, [I

    fill-array-data v0, :array_0

    .line 32
    iput-object v0, p0, Limoblife/yogamoment/lite/SetActivity;->times:[I

    .line 14
    return-void

    .line 22
    nop

    :array_0
    .array-data 0x4
        0x70t 0x17t 0x0t 0x0t
        0x98t 0x3at 0x0t 0x0t
        0x30t 0x75t 0x0t 0x0t
        0x50t 0xc3t 0x0t 0x0t
        0x60t 0xeat 0x0t 0x0t
        0xc0t 0xd4t 0x1t 0x0t
        0xc0t 0x27t 0x9t 0x0t
        0x40t 0x77t 0x1bt 0x0t
        0xc0t 0xc6t 0x2dt 0x0t
        0xfft 0xfft 0xfft 0xfft
    .end array-data
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 6
    .parameter "savedInstanceState"

    .prologue
    const-string v5, "d"

    .line 38
    invoke-super {p0, p1}, Landroid/preference/PreferenceActivity;->onCreate(Landroid/os/Bundle;)V

    .line 39
    const v3, 0x7f04000e

    invoke-virtual {p0, v3}, Limoblife/yogamoment/lite/SetActivity;->addPreferencesFromResource(I)V

    .line 40
    const-string v3, "setSlideTime"

    invoke-virtual {p0, v3}, Limoblife/yogamoment/lite/SetActivity;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v1

    .line 41
    .local v1, setAnimationtpreference:Landroid/preference/Preference;
    const-string v3, "d"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "animationModeIndex="

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget v4, Limoblife/yogamoment/lite/SetActivity;->animationModeIndex:I

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v5, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 43
    new-instance v3, Limoblife/yogamoment/lite/SetActivity$1;

    invoke-direct {v3, p0}, Limoblife/yogamoment/lite/SetActivity$1;-><init>(Limoblife/yogamoment/lite/SetActivity;)V

    invoke-virtual {v1, v3}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 66
    const-string v3, "animationEnbled"

    invoke-virtual {p0, v3}, Limoblife/yogamoment/lite/SetActivity;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v0

    check-cast v0, Landroid/preference/CheckBoxPreference;

    .line 68
    .local v0, animationCheckBox:Landroid/preference/CheckBoxPreference;
    sget-boolean v3, Limoblife/yogamoment/lite/SetActivity;->isAnimationPlay:Z

    invoke-virtual {v0, v3}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 70
    new-instance v3, Limoblife/yogamoment/lite/SetActivity$2;

    invoke-direct {v3, p0, v0, v1}, Limoblife/yogamoment/lite/SetActivity$2;-><init>(Limoblife/yogamoment/lite/SetActivity;Landroid/preference/CheckBoxPreference;Landroid/preference/Preference;)V

    invoke-virtual {v0, v3}, Landroid/preference/CheckBoxPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

    .line 87
    sget-boolean v3, Limoblife/yogamoment/lite/SetActivity;->isAnimationPlay:Z

    if-eqz v3, :cond_0

    .line 88
    const v3, 0x7f050029

    invoke-virtual {v0, v3}, Landroid/preference/CheckBoxPreference;->setTitle(I)V

    .line 89
    const v3, 0x7f05002b

    invoke-virtual {v0, v3}, Landroid/preference/CheckBoxPreference;->setSummary(I)V

    .line 90
    const/4 v3, 0x1

    invoke-virtual {v1, v3}, Landroid/preference/Preference;->setEnabled(Z)V

    .line 99
    :goto_0
    const-string v3, "d"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "timeIndex="

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget v4, Limoblife/yogamoment/lite/SetActivity;->timeIndex:I

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v5, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 100
    const-string v3, "setScreenTimeout"

    invoke-virtual {p0, v3}, Limoblife/yogamoment/lite/SetActivity;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v2

    .line 102
    .local v2, setScreenTimeOutpreference:Landroid/preference/Preference;
    new-instance v3, Limoblife/yogamoment/lite/SetActivity$3;

    invoke-direct {v3, p0}, Limoblife/yogamoment/lite/SetActivity$3;-><init>(Limoblife/yogamoment/lite/SetActivity;)V

    invoke-virtual {v2, v3}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 129
    return-void

    .line 92
    .end local v2           #setScreenTimeOutpreference:Landroid/preference/Preference;
    :cond_0
    const v3, 0x7f05002a

    invoke-virtual {v0, v3}, Landroid/preference/CheckBoxPreference;->setTitle(I)V

    .line 93
    const v3, 0x7f05002c

    invoke-virtual {v0, v3}, Landroid/preference/CheckBoxPreference;->setSummary(I)V

    .line 94
    const/4 v3, 0x0

    invoke-virtual {v1, v3}, Landroid/preference/Preference;->setEnabled(Z)V

    goto :goto_0
.end method
